import { accountType, meetingStatus } from '../global/interface'
/** 会议信息 ---- 接口 */
export interface FetchCalendarListParam {
	meeting_id: string
	name: string
	start_time: string
	end_time: string
	state: meetingStatus
	meeting_type: number
	duration: number
	work_phone: string
	mobile_phone: string
	organizer_moid: string
	organizer_name: string
	last_modify_time: string
	week_day: string
	permanent_meeting: number
}

/** 会议信息 ---- 数据 */
export interface MeetingInfo {
	/** 会议moid */
	meeting_moid: string
	/** 会议名称 */
	name: string
	/** 会议时长（分钟） */
	duration: number
	/** 会议状态 1：已预定；2：已开始；3：已结束；6：待审批；7：审批不通过 */
	state: meetingStatus
	/** 会议开始时间 */
	start_time: string
	/** 会议结束时间 */
	end_time: string
	/** 会议组织者 */
	organizer_name: string
	/** 会议组织者moid */
	organizer_moid: string
	/** 日期 */
	week_day: string
	/** 是否永久会议 */
	permanent_meeting: number
	/** 分机 */
	work_phone: string
	/** 手机号 */
	mobile_phone: string
}
/** 会议详细信息 ---- 接口 */
export interface FetchDetailParam {
	name: string
	start_time: string
	end_time: string
	state: meetingStatus
	duration: number
	chairman: {
		account: string
		account_type: accountType
		name: string
		mobile: string
		telephone: string
	}
	invite_members: [
		{
			account: string
			account_type: accountType
			name: string
		}
	]
	creator: {
		account: string
		account_type: accountType
		name: string
		mobile: string
		telephone: string
	}
	members: [
		{
			account: string
			account_type: accountType
			name: string
		}
	]
	rooms: [
		{
			name: string
		}
	]
	meeting_moid: string
	last_modify_time: string
	enable_rtc: 0 | 1
	brief: string
	regular_meeting_moid: string
}
/** 例会信息 ---- 接口 */
export interface FetchRegularMeetings {
	day: string
	meeting_moid: string
}
